package com.zzyl.mapper;


import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingProjectMapper {

    //分页查询
    Page<NursingProject> selectByPage(String name, Integer status);

    //查询所有护理项目
    List<NursingProject> selectAll();

    //新增护理项目
    void insert(NursingProject nursingProject);

    //根据id查询护理项目
    NursingProject selectByPrimaryKey(Long id);

    //修改护理项目
    void updateByPrimaryKey(NursingProject nursingProject);

    //修改护理项目状态
    void updateStatus(Long id, Integer status);

    //删除护理项目
    void delete(Long id);
}
